package com.xma.springcloud.service;

import com.xma.springcloud.common.ResponseResult;
import com.xma.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author: arthur
 * @License: (C) Copyright 2020-2028, xxx Corporation Limited.
 * @Contact: 413911174@qq.com
 * @Date: 2020/7/6 12:07
 * @Version: 1.0
 * @Description:
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public ResponseResult<Payment> paymentSQL(Long id) {
        return new ResponseResult<>(4444,"服务降级返回,---- paymentFallbackService",new Payment(id,"errorSerial"));
    }
}
